<?php

namespace IDock\Insurance\JTIC\Request;

use IDock\Insurance\JTIC\Request\AllJTICRequest;
use IDock\Insurance\JTIC\Response\EPolicyDownloadResponse;
use IDock\Visitor\EPolicyDownloadVisitor;

class EPolicyDownloadRequest extends AllJTICRequest
{
    public $code = 'V205';

    protected $response = EPolicyDownloadResponse::class;

    protected $urlTip = '电子保单(保单详情)';

    /**
     * @var  EPolicyDownloadVisitor $visitor
     */
    protected $visitor;

    public function generate(): array
    {
        return [
            'BasePart' => [
                'QtnId' => $this->visitor->argc['QtnId'] ?? '',
            ],
        ];
    }
}
